<template>
	<view class="themeItem">
		<navigator v-if="!isMore" class="box" url="/pages/classlist/classlist">
			<image class="pic" src="/common/wallpaper/classify1.jpg" mode="aspectFill"></image>
			<view>
				<view class="tab">23天前更新</view>
				<view class="mask">明星美女</view>
			</view>
		</navigator>
		<navigator v-else  class="box" url="/pages/classify/classify" open-type="switchTab">
			<image class="pic" src="/common/wallpaper/classify1.jpg" mode="aspectFill"></image>
			<view class="more">
				<uni-icons type="more-filled" size=34 color=#fff></uni-icons>
				<view>更多</view>
			</view>
		</navigator>
	</view>
</template>

<script setup>
	defineProps({
		isMore: {
			type: Boolean,
			default: false,
		}
	})

</script>

<style lang="scss" scoped>
	.themeItem {
		.box {
			position: relative;
			height: 340rpx;
			border-radius: 10rpx;
			overflow: hidden;

			.pic {
				width: 100%;
				height: 100%;
			}

			.tab {
				position: absolute;
				top: 0rpx;
				color: white;
				font-size: 22rpx;
				padding: 6rpx 14rpx;
				border-radius: 0 0 20rpx 0;
				background-color: rgba(250, 90, 90, 0.7);
				backdrop-filter: blur(15rpx);
			}

			.mask {
				position: absolute;
				bottom: 0rpx;
				width: 100%;
				height: 70rpx;
				font-size: 30rpx;
				font-weight: 300;
				color: white;
				line-height: 70rpx;
				text-align: center;
				background-color: rgba(0, 0, 0, 0.2);
				backdrop-filter: blur(15rpx);
			}

			.more{
				position: absolute;
				top: 0rpx;
				width: 100%;
				height: 100%;
				display: flex;
				justify-content: center;
				align-items: center;
				flex-direction: column;
				color: white;
				background-color: rgba(0, 0, 0, 0.2);
				backdrop-filter: blur(15rpx);
			}
		}	
	}
</style>